package org.sjsu.freedoor.db;

import org.sjsu.freedoor.model.*;

public interface DBHandler {
	public CommunityList getCommunities();
	public boolean postCommunity(Community c);
	
	public String putService(Service service);
	public String updateService(Service service);
	public Service getService(String oid);
	public Freedoor.RequestReturnType removeService(String oid);
	public ServiceList getServices(int pageNumber);
	public ServiceList searchServices(String key, String value, int pageNumber);
	
	public OfferList getOffersForService(String oid);
	public String putOffersForService(String serviceOid, OfferList offers);


	public String putGood(Good good);
	public String updateGood(Good good);
	public Good getGood(String oid);
	public Freedoor.RequestReturnType removeGood(String oid);
	public GoodList getGoods(int pageNumber);
	public GoodList searchGoods(String key, String value, int pageNumber);
	
	public OfferList getOffersForGood(String oid);
	public String putOffersForGood(String goodOid, OfferList offers);


}
